package scct.zhanghongbo.model;

import java.io.Serializable;

/**
 * 
 * TableName cr_staff
 */
public class Staff implements Serializable {
    /**
     * 编号
     */
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 性别
     */
    private String gender;

    /**
     * 手机
     */
    private String phone;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 权限等级
     */
    private Integer staffRank;

    /**
     * 展馆编号
     */
    private Integer ehId;

    public Staff(Integer id, String name, String gender, String phone, String account, String password, Integer staffRank, Integer ehId) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.phone = phone;
        this.account = account;
        this.password = password;
        this.staffRank = staffRank;
        this.ehId = ehId;
    }

    /**
     * 编号
     */
    public Integer getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 性别
     */
    public String getGender() {
        return gender;
    }

    /**
     * 性别
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 手机
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 手机
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 账号
     */
    public String getAccount() {
        return account;
    }

    /**
     * 账号
     */
    public void setAccount(String account) {
        this.account = account;
    }

    /**
     * 密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 权限等级
     */
    public Integer getStaffRank() {
        return staffRank;
    }

    /**
     * 权限等级
     */
    public void setStaffRank(Integer staffRank) {
        this.staffRank = staffRank;
    }

    /**
     * 展馆编号
     */
    public Integer getEhId() {
        return ehId;
    }

    /**
     * 展馆编号
     */
    public void setEhId(Integer ehId) {
        this.ehId = ehId;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getStaffRank() == null) ? 0 : getStaffRank().hashCode());
        result = prime * result + ((getEhId() == null) ? 0 : getEhId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", gender=").append(gender);
        sb.append(", phone=").append(phone);
        sb.append(", account=").append(account);
        sb.append(", password=").append(password);
        sb.append(", staffRank=").append(staffRank);
        sb.append(", ehId=").append(ehId);
        sb.append("]");
        return sb.toString();
    }
}